-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[hotfix] main-suyeon 브랜치 최종 동기화 및 자잘한 이슈 적용 #128
Conversation
애플로그인 클라설정 완료
feat:애플로그인 기능 추가
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
유진아가 수고했어요 !~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다.
내일부터 행복앱잼 화이팅해요~
super.viewDidLoad() | ||
|
||
self.navigationController?.navigationBar.isHidden = true | ||
view.backgroundColor = .yellow | ||
setupAppleLoginButton() | ||
} | ||
|
||
func setupAppleLoginButton() { | ||
let button = ASAuthorizationAppleIDButton() | ||
button.addTarget(self, action: #selector(clickAppleLogin), for: .touchUpInside) | ||
button.frame = CGRect(x: 100, y: 100, width: 200, height: 40) | ||
view.addSubview(button) | ||
} | ||
|
||
@objc func clickAppleLogin() { | ||
let request = ASAuthorizationAppleIDProvider().createRequest() | ||
request.requestedScopes = [.fullName, .email] | ||
|
||
let controller = ASAuthorizationController(authorizationRequests: [request]) | ||
controller.delegate = self | ||
controller.presentationContextProvider = self | ||
controller.performRequests() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To. @hooni0918
이러한 부분들은 추후 Base UI Class 를 상속하여 구현할 때, 구현할 코드의 형태가 지금과는 다르게 구현되어야 할 것을 기억해 주시면 좋을 것 같습니다!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셧습니다~
🔗 연결된 이슈
📄 작업 내용
main
브랜치에suyeon
브랜치 변경 사항을 병합했습니다.UIViewController
로 선언된 VC 파일들BaseViewController
로 변경했습니다.LoginViewController
생성 및 애플 로그인 코드 병합했습니다.